package com.example.demo.response;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @ClassName: ResultMap
 * @Description: 请求响应对象
 * @author: moke
 * @date: 2020/3/17 10:51
 */
public class ResponseData<T> implements Serializable {
    @ApiModelProperty(value = "返回数据结果集")
    private T data;

    @ApiModelProperty(value = "返回状态码")
    private Integer code;

    @ApiModelProperty(value = "返回消息提示")
    private String msg;

    @ApiModelProperty(value = "分页查数据总数")
    private Long total;

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }


    public void setMsg(String msg) {
        this.msg = msg;
    }
}
